﻿using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 组织机构入驻请求
    /// </summary>
    public class OrganizationSettledRequest
    {
        /// <summary>
        /// 公司名称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "公司名称")]
        public string sName
        {
            get; set;
        }

        /// <summary>
        /// 公司简称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 6, Description = "公司简称")]
        public string sAbbreviation
        {
            get; set;
        }

        /// <summary>
        ///联系人
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 20, Description = "联系人")]
        public string sLeader
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.TelphoneOrMobile, MaxLength = 100, Description = "联系电话")]
        public string sPhone
        {
            get; set;
        }

        /// <summary>
        /// 验证码
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.Number, MaxLength = 6, Description = "验证码")]
        public string sValidate
        {
            get; set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength,MinLength =6,MaxLength = 50, Description = "密码")]
        public string sEncryptPassword
        {
            get; set;
        }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.Email, MaxLength = 100, Description = "邮箱")]
        public string sEmail
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string sContent
        {
            get; set;
        }

        /// <summary>
        /// 状态 0不启用 1启用
        /// </summary>
        public bool bIsEnabled
        {
            get; set;
        }
    }
}
